import request from '@/utils/request'

// 查询大赛报名人员信息列表
export function listUser(query) {
  return request({
    url: '/business/skillBmUser/list',
    method: 'get',
    params: query
  })
}

// 查询大赛报名人员信息详细
export function getUser(id) {
  return request({
    url: '/business/skillBmUser/' + id,
    method: 'get'
  })
}

// 新增大赛报名人员信息
export function addUser(data) {
  return request({
    url: '/business/skillBmUser',
    method: 'post',
    data: data
  })
}

// 修改大赛报名人员信息
export function updateUser(data) {
  return request({
    url: '/business/skillBmUser',
    method: 'put',
    data: data
  })
}

// 删除大赛报名人员信息
export function delUser(id) {
  return request({
    url: '/business/skillBmUser/' + id,
    method: 'delete'
  })
}
